﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DevExpress.UserSkins;
using DevExpress.Skins;
using DevExpress.LookAndFeel;

using System.Runtime.InteropServices;

namespace ZK.Qymd_TransManage
{
    static class Program
    {

        [DllImport("kernel32.dll")]
        public static extern Boolean AllocConsole();
        [DllImport("kernel32.dll")]
        public static extern Boolean FreeConsole();
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            string DebugOpen = Common.AppConfigHelper.GetAppSettings("DebugOpen");
            if (DebugOpen == "1")
            {
                AllocConsole();
            }
            Console.WriteLine("laishi ");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ServiceReferenceApi.AccessApiServiceClient client = new ServiceReferenceApi.AccessApiServiceClient();

            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            Application.Run(new Login());
            if (DebugOpen == "1")
            {
                FreeConsole();
            }

            //Application.Run(new Test.Print());
            //Application.Run(new Register());
            //Application.Run(new SalesSummary());
            //Application.Run(new Main());
            //Application.Run(new SalesRecords());

        }
    }
}
